from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.conf import settings
from django.contrib import admin
from django.views.generic import RedirectView


admin.autodiscover()

#from django.conf.urls import patterns, include, url
#from django.contrib import admin
import xadmin
xadmin.autodiscover()


urlpatterns = patterns('',
    # Examples:
    url(r'^$', RedirectView.as_view(url='/xadmin/')),
    # url(r'^blog/', include('blog.urls')),
    url(r'^wenjuan/',include('rfwenjuan.urls')),
    url(r'xadmin/', include(xadmin.site.urls)),
    
)

#urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
#urlpatterns += (r'^static/(?P.*)$', 'django.views.static.serve',{'document_root': settings.STATIC_ROOT})